import request from '@/utils/request'

export function page(params) {
  return request({
    url: '/api/pds/pdsQuoteBasic/getQuoteList',
    method: 'get',
    params
  })
}

export function getClientList() {
  return request({
    url: '/api/pds/pdsCustomer/getPdsCustomerByName',
    method: 'get'
  })
}

// 获取报价条件
export function getPdsSaleConfAssetTree(params) {
  return request({
    url: '/api/pds/pdsSaleConfAsset/getPdsSaleConfAssetTree',
    method: 'get',
    params
  })
}

// 提交或更新
export function save(data) {
  return request({
    url: '/api/pds/pdsQuoteBasic/saveQuote',
    method: 'post',
    data
  })
}

// 提交或更新
export function getDetail(params) {
  return request({
    url: '/api/pds/pdsQuoteBasic/getQuoteDetail',
    method: 'get',
    params
  })
}


// 价格调整
export function adjustPrice(data) {
  return request.post({
    url: '/api/pds/pdsQuoteBasic/adjustPrice',
    data
  })
}

// 价格调整保存
export function adjustSave(data) {
  return request({
    url: '/api/pds/pdsQuoteBasic/saveAdjustQuote',
    method: 'post',
    data
  })
}

// 获取历史数据
export function getHistoryQuote(params) {
  return request({
    url: '/api/pds/pdsQuoteBasic/getHistoryQuote',
    method: 'get',
    params
  })
}

// 导出Excel
export function getExcel(params) {
  return request({
    url: '/api/pds/pdsQuoteBasic/exportQuoteExcel',
    method: 'get',
    params
  })
}



